Skip to content

Keep forgotten projects out of app snapshots - #48

Merged
VladimirBrejcha merged 1 commit into
mainfrom
codex/project-forget-read-model
Sep 1, 2026
Merged

Keep forgotten projects out of app snapshots#48
VladimirBrejcha merged 1 commit into
mainfrom
codex/project-forget-read-model

Conversation

@VladimirBrejcha

Copy link
Copy Markdown
Contributor

Summary

  • stop retained project-scoped audit events from creating an otherwise inactive Projects read-model entry
  • keep events as enrichment for projects still seeded by registration, an active lease, or an active pin
  • cover the acquire → release → forget lifecycle while proving lease audit history remains visible

Reliability boundary

The failure required catalog deletion and retained historical events to interact during snapshot summarization. This change removes that coupling at the read-model boundary without deleting history or adding tombstones, migrations, or a second source of truth.

Verification

  • focused regression failed before the core change and passed after it
  • broker core: 294 tests passed
  • client: 258 tests passed
  • full product suite passed, including 172 macOS app tests
  • routed implementation profile passed, including 113 harness tests
  • public surface and current-source release audits passed
  • independent review found no P1/P2/P3 issue

Closes #47

Why:
Retained project-scoped audit events could recreate an inactive project after project forget removed its registration, leaving a ghost card with no leases or pins.

Changed:
- Let recent events enrich only project summaries already seeded by current registration, active lease, or active pin state.
- Extend the direct CLI forget regression through acquire and release while proving audit events remain visible.

Verification:
- node --test --test-name-pattern="project forget removes an inactive registration" client/test/simbroker.test.mjs (fails before fix; passes after fix)
- npm run test:broker-core (294 pass)
- npm run test:client (258 pass)
- npm test (pass, including 172 macOS app tests)
- npm run agent:verify -- --profile implementation --paths broker-core/index.mjs client/test/simbroker.test.mjs --session-dir task-sessions/project-forget-read-model-20260901.KOGb15 (pass)
- npm run verify:public-surface (pass)
- current-source public release audit (pass)
- independent diff review (no P1/P2/P3 findings)

Affected:
Projects read-model summarization and the focused project-forget CLI regression. Event storage, retention, transport, host configuration, leases, pins, and simulator lifecycle are unchanged.

Refs:
#47

Session:
task-sessions/project-forget-read-model-20260901.KOGb15
@VladimirBrejcha VladimirBrejcha added the autopilot:on Enable Autopilot processing for this PR label Sep 1, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T12:47:59.254516Z c3ff9c2 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@VladimirBrejcha

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: c3ff9c2159

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@fiveonecode-autopilot

Copy link
Copy Markdown

Reviewed top-level PR feedback and left the current code unchanged.

These items were posted as PR review bodies or conversation comments rather than unresolved review threads, so this acknowledgement is recorded on the PR timeline.

@VladimirBrejcha
VladimirBrejcha merged commit 91e42e5 into main Sep 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autopilot:on Enable Autopilot processing for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Project snapshot can restore a forgotten project from recent events

1 participant